Optimal. Leaf size=171 \[ \frac{2 A b^2 \sqrt{\cos (c+d x)} \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right ) \sqrt{b \sec (c+d x)}}{3 d}+\frac{2 A b \sin (c+d x) (b \sec (c+d x))^{3/2}}{3 d}+\frac{6 b^2 B \sin (c+d x) \sqrt{b \sec (c+d x)}}{5 d}-\frac{6 b^3 B E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{5 d \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}+\frac{2 B \sin (c+d x) (b \sec (c+d x))^{5/2}}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.118789, antiderivative size = 171, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 5, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.217, Rules used = {3787, 3768, 3771, 2641, 2639} \[ \frac{2 A b^2 \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{b \sec (c+d x)}}{3 d}+\frac{2 A b \sin (c+d x) (b \sec (c+d x))^{3/2}}{3 d}+\frac{6 b^2 B \sin (c+d x) \sqrt{b \sec (c+d x)}}{5 d}-\frac{6 b^3 B E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{5 d \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}+\frac{2 B \sin (c+d x) (b \sec (c+d x))^{5/2}}{5 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3787
Rule 3768
Rule 3771
Rule 2641
Rule 2639
Rubi steps
\begin{align*} \int (b \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx &=A \int (b \sec (c+d x))^{5/2} \, dx+\frac{B \int (b \sec (c+d x))^{7/2} \, dx}{b}\\ &=\frac{2 A b (b \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac{2 B (b \sec (c+d x))^{5/2} \sin (c+d x)}{5 d}+\frac{1}{3} \left (A b^2\right ) \int \sqrt{b \sec (c+d x)} \, dx+\frac{1}{5} (3 b B) \int (b \sec (c+d x))^{3/2} \, dx\\ &=\frac{6 b^2 B \sqrt{b \sec (c+d x)} \sin (c+d x)}{5 d}+\frac{2 A b (b \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac{2 B (b \sec (c+d x))^{5/2} \sin (c+d x)}{5 d}-\frac{1}{5} \left (3 b^3 B\right ) \int \frac{1}{\sqrt{b \sec (c+d x)}} \, dx+\frac{1}{3} \left (A b^2 \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}\right ) \int \frac{1}{\sqrt{\cos (c+d x)}} \, dx\\ &=\frac{2 A b^2 \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{b \sec (c+d x)}}{3 d}+\frac{6 b^2 B \sqrt{b \sec (c+d x)} \sin (c+d x)}{5 d}+\frac{2 A b (b \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac{2 B (b \sec (c+d x))^{5/2} \sin (c+d x)}{5 d}-\frac{\left (3 b^3 B\right ) \int \sqrt{\cos (c+d x)} \, dx}{5 \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}\\ &=-\frac{6 b^3 B E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{5 d \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}+\frac{2 A b^2 \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{b \sec (c+d x)}}{3 d}+\frac{6 b^2 B \sqrt{b \sec (c+d x)} \sin (c+d x)}{5 d}+\frac{2 A b (b \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac{2 B (b \sec (c+d x))^{5/2} \sin (c+d x)}{5 d}\\ \end{align*}
Mathematica [A] time = 0.475985, size = 99, normalized size = 0.58 \[ \frac{(b \sec (c+d x))^{5/2} \left (20 A \cos ^{\frac{5}{2}}(c+d x) \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right )+10 A \sin (2 (c+d x))+21 B \sin (c+d x)+9 B \sin (3 (c+d x))-36 B \cos ^{\frac{5}{2}}(c+d x) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )\right )}{30 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.275, size = 518, normalized size = 3. \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (B \sec \left (d x + c\right ) + A\right )} \left (b \sec \left (d x + c\right )\right )^{\frac{5}{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (B b^{2} \sec \left (d x + c\right )^{3} + A b^{2} \sec \left (d x + c\right )^{2}\right )} \sqrt{b \sec \left (d x + c\right )}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (B \sec \left (d x + c\right ) + A\right )} \left (b \sec \left (d x + c\right )\right )^{\frac{5}{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]